from create import User, session

# ret = session.query(User).filter(User.name.like('M%')).all()
# for item in ret:
#     print("%d %s %s" %(item.id, item.name, item.extra))
ret = session.query(User).filter(~User.name.like('M%')).all()
for item in ret:
    print("%d %s %s" %(item.id, item.name, item.extra))